/**
 * Get the base URL for HTTP requests based on the current environment.
 */
export function getHttpBaseUrl(): string {
  const config = useRuntimeConfig();
  return import.meta.server ? config.apiBase : config.public.apiBase;
}
